package com.panopset.game.blackjack;

import com.panopset.game.Tile;

/**
 *
 * @author Karl Dinwiddie
 *
 */
public abstract class Layout {

    public final Tile t;
    public final int h;
    public final int w;
    public final int centerW;
    public final int centerH;
    public final int cardW;
    public final int cardH;
    public final int cardSpacer;
    public final Cycle cy;

    public Layout(Tile tile, int[] cardDim, Cycle cycle) {
        t = tile;
        w = t.getWidth();
        h = t.getHeight();
        centerW = w / 2;
        centerH = h / 2;
        cardW = cardDim[0];
        cardH = cardDim[1];
        cardSpacer = cardW / 5;
        cy = cycle;
    }
}
